package com.networklib.task;

import okhttp3.Call;
import okhttp3.Response;

public class ResponseResult {
    private String mTag;
    private String requestUrl;
    private Call mCall;
    private Response mResponse;
    private Object requestTag;

    public ResponseResult() {
    }

    public ResponseResult(String mTag, String requestUrl) {
        this.mTag = mTag;
        this.requestUrl = requestUrl;
    }

    public ResponseResult(ResponseResult responseResult, Response response) {
        this.mTag = responseResult.getTag();
        this.mCall = responseResult.getCall();
        this.mResponse = response;
    }

    public ResponseResult(String mTag, String requestUrl, Call call, Response response) {
        this.mTag = mTag;
        this.requestUrl = requestUrl;
        this.mCall = call;
        this.mResponse = response;
    }

    public ResponseResult(String mTag, String requestUrl, Call call) {
        this.mTag = mTag;
        this.requestUrl = requestUrl;
        this.mCall = call;
    }

    public String getTag() {
        return this.mTag;
    }

    public void setTag(String mTag) {
        this.mTag = mTag;
    }

    public Call getCall() {
        return this.mCall;
    }

    public void setCall(Call mCall) {
        this.mCall = mCall;
    }

    public Response getResponse() {
        return this.mResponse;
    }

    public void setResponse(Response mResponse) {
        this.mResponse = mResponse;
    }

    public String getRequestUrl() {
        return this.requestUrl;
    }

    public void setRequestUrl(String requestUrl) {
        this.requestUrl = requestUrl;
    }

    public Object getRequestTag() {
        return this.requestTag;
    }

    public void setRequestTag(Object requestTag) {
        this.requestTag = requestTag;
    }
}